<template>
  <div class="wrap">
    <div class="top"></div>
    <article class="content">
      <h1>售票处</h1>
      <p class="lead">
        熟练便捷乘坐南昌Metro地铁。
        <br />希望乘坐南昌Metro地铁，畅游洪都南昌。希望更划算地使用相同票价的区间。
        <br />南昌Metro地铁准备了符合您乘车需求的优惠车票。
      </p>
      <section class="cat">
        <h2 class="h2center">车票类型</h2>
        <div class="linkIndex">
          <div class="blockIndex" v-for="(item, index) in $store.state.ticketCat" :key="index">
            <a href="#">
              <div class="picIndex">
                <img :src="item.path" width="216" height="144" alt />
              </div>
              <div class="textIndex">
                <h3>{{item.name}}</h3>
                <p>{{item.desc}}</p>
              </div>
              <div class="btnView showSp">查看更多</div>
            </a>
          </div>
        </div>
        <div class="linkBox">
          <a href="#">
            <div class="blockIndex">
              <h3>查询票价、换乘</h3>
              <p>搜索到目的地为止的票价和换车信息。</p>
            </div>
          </a>

          <a href="#">
            <div class="blockIndex">
              <h3>各年龄段优惠</h3>
              <p>介绍适用于老人、儿童和婴幼儿各年龄层的票价。</p>
            </div>
          </a>

          <a href="#">
            <div class="blockIndex">
              <h3>南昌地铁优惠礼</h3>
              <p>介绍南昌地铁各站点周围景点以及票价减免等查询服务</p>
            </div>
          </a>
        </div>
      </section>
      <section class="relatedLinksCard">
        <h2 class="h2center">相关链接</h2>
        <div class="wrapper">
          <a href="#" v-for="(item,index) in $store.state.relatedLinks" :key="index">
            <div class="blockIndex">
              <h3>{{item.desc}}</h3>
              <div class="picIndex">
                <img :src="item.path" width="62" height="60"/>
              </div>
            </div>
          </a>
        </div>
      </section>
    </article>
  </div>
</template>

<script>
import store from "../../store/index";
export default {
  store,
  name: "ticketinfo",
  data() {
    return {};
  },
  components: {}
};
</script>

<style scoped>
@import "../../assets/css/common.css";

.top {
  width: 100%;
  height: 90px;
  background: #00467e;
}
.wrap {
  width: 100%;
}
article {
  display: block;
  font-family: Helvetica, Arial, "sans-serif";
  background-size: cover;
  width: 100%;
  height: auto;
  margin-top: 50px;
}
h1 {
  position: relative;
  font-size: 2.2rem;
  color: #00467e;
  text-align: center;
  word-break: keep-all;
  padding-bottom: 20px;
  margin-bottom: 42px;
}
h1::before,
h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: 49px;
  height: 4px;
  background-color: #00a3d9;
  margin-left: -49px;
}
h1::after {
  background-color: #00467e;
  margin-left: 1px;
}
.h2center {
  font-size: 2rem;
  color: #00467e;
  text-align: center;
  margin: 80px 0 48px;
}
h2 {
  font-size: 2rem;
  color: #00467e;
  text-align: center;
  line-height: 1.5;
  word-break: keep-all;
  margin-bottom: 48px;
}
p {
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}
p.lead {
  max-width: 1146px;
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto 80px;
}
.linkBox {
  width: 100%;
  display: flex;
  justify-content: space-between;
  max-width: 1146px;
  margin: 0 auto 80px;
}
.linkBox a {
  position: relative;
  background: #f8f8f8;
  display: block;
  width: 30%;
 color: #000;
  background-size: 11px auto;
  text-decoration: none;
  padding: 10px 60px 10px 30px;
  margin: 10px;
  border-radius: 5px;
 
}
.linkBox h3 {
  font-size: 1.8rem;
  line-height: 1.2;
  color: #00467e;
  margin-bottom: 10px;
}
/* 相关链接 */
.relatedLinksCard .wrapper {
  display: flex;
  justify-content: space-between;
  max-width: 1146px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.showSp{
  display: none;
}
.relatedLinksCard a {
  position: relative;
  display: flex;
  align-self: center;
  width: 23.1%;
  min-height: 100px;
  text-decoration: none;
  color: #00467e;
  padding-left: 18px;
  border: 1px solid #ccc;}

.relatedLinksCard .blockIndex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.relatedLinksCard a:hover {
  background-color: rgba(0, 0, 0, 0.1);
  opacity: 1;
}
.relatedLinksCard h3 {
  font-size: 1rem;
  line-height: 1.25;
  background: url("/img/icon_arrow_blue.png") no-repeat left 3px;
  background-size: 7px auto;
  padding-left: 16px;
}
.relatedLinksCard .picIndex {
  min-width: 30px;
}
.relatedLinksCard a .picIndex {
  width: 23.4%;
  margin-right: 4.9%;
}
.relatedLinksCard .picIndex img {
  width: 100%;
  height: auto;
}
.linkIndex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1146px;
  padding-bottom: 8px;
  margin: 0 auto;
}
.linkIndex .blockIndex {
  position: relative;
  width: 45.7%;
  padding: 34px 0 0;
  margin-bottom: 56px;
  overflow: hidden;
}
.linkIndex .blockIndex::before,
.linkIndex .blockIndex::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 99px;
  height: 4px;
  background-color: #00a3d9;
}
.linkIndex .blockIndex::after {
  width: 100%;
  left: 100px;
  background-color: #c5d7dd;
}
.linkIndex .blockIndex a {
  position: relative;
  color: #000;
  text-decoration: none;
}
.linkIndex .picIndex {
  float: left;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 33%;
  height: 144px;
  background-color: #edf6f9;
}
.linkIndex .picIndex img {
  width: 77%;
  height: auto;
}
.linkIndex .blockIndex .picIndex::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.linkIndex .textIndex {
  float: right;
  width: 58%;
  padding-left: 23px;
}
.linkIndex .blockIndex h3 {
  font-size: 1.4rem;
  color: #00467e;
  background: url("/img/icon_arrow_blue.png") no-repeat left 10px;
  background-size: 7px 12px;
  padding: 0 0 0 15px;
  margin-bottom: 5px;
  margin-top: 0;
}
.linkIndex .blockIndex p {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 8px 0 15px;
}
.showSp {
  display: none;
}
/* 移动端 */
@media screen and (max-width: 700px) {
  section {
    padding: 0 15px;
  }
  .linkIndex .blockIndex {
    width: 100%;
  }

  .linkIndex .blockIndex .picIndex {
    width: 100%;
    height: 300px;
  }

  .linkIndex .blockIndex .textIndex {
    float: none;
    padding-left: 0px;
    margin-bottom: 20px;
  }

  .linkIndex .blockIndex .textIndex h3 {
    margin-top: 5px;
    color: #000;
    padding-left: 0;
    font-size: 1.2rem;
  }

  .linkIndex .blockIndex .textIndex p {
    padding-left: 0;
    width: 600px;
  }

  .linkIndex .blockIndex .picIndex img {
    
    height: 90%;
  }

  .linkIndex .showSp {
    display: block;
    width: 100%;
    background-color: #00467e;
  }
  .linkIndex .btnView {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    font-size: 1.2rem;
    background-color: #00467e;
    border-radius: 3px;
    color: #fff;
  }
  .linkBox{
    padding-bottom: 25px;
display: flex;
flex-wrap: wrap;
width: auto;
  }
  .linkBox a{
    margin: 0 auto;
display: block;
    width: 100%;
    color: #000;
    background: #f8f8f8 url("/img/icon_arrow_blue.png") no-repeat 88.6vw center;
    background-size: 11px auto;
    text-decoration: none;
    border-radius: 3px;
    margin-bottom: 15px;
  }
  .linkBox .blockIndex{
    width: 100%;
    margin: 0;
    padding: 0;
  }
.relatedLinksCard .wrapper{
  display: flex;
  flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
}
  .relatedLinksCard a {
        align-items: center;
    width: 45.3%;
    min-height: 65px;
    text-decoration: none;
    color: #00467e;
    padding: 10px 0 10px 2vw;
    border: 1px solid #ccc;
    margin-bottom: 15px;
  }

 

}
</style>
